package com.cake.entity;


import com.cake.entity.base.BaseEntity;

public class XxBannerImage extends BaseEntity {
    /**
     * 横幅主键
     * 表字段 : xx_banner_image.banner
     */
    private Long banner;

    /**
     * 横幅图片标题
     * 表字段 : xx_banner_image.title
     */
    private String title;

    /**
     * 原图片地址
     * 表字段 : xx_banner_image.source
     */
    private String source;

    /**
     * 横幅图片访问链接地址
     * 表字段 : xx_banner_image.linkurl
     */
    private String linkurl;

    /**
     * 横幅图片显示排序
     * 表字段 : xx_banner_image.orders
     */
    private Integer orders;

    /**
     * 横幅大图片
     * 表字段 : xx_banner_image.large
     */
    private String large;

    /**
     * 横幅中等图片
     * 表字段 : xx_banner_image.medium
     */
    private String medium;

    /**
     * 横幅缩略图
     * 表字段 : xx_banner_image.thumbnail
     */
    private String thumbnail;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_banner_image
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;
    /**
     * 前台传来的base64位的图片字符串
     */
    private String bannerImageStr;
    /**
     * 是否为新图的标志
     */
    private Integer isNew;
    
    public Integer getIsNew() {
		return isNew;
	}

	public void setIsNew(Integer isNew) {
		this.isNew = isNew;
	}

	public String getBannerImageStr() {
		return bannerImageStr;
	}

	public void setBannerImageStr(String bannerImageStr) {
		this.bannerImageStr = bannerImageStr;
	}

	public Long getBanner() {
        return banner;
    }

    public void setBanner(Long banner) {
        this.banner = banner;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source == null ? null : source.trim();
    }

    public String getLinkurl() {
        return linkurl;
    }

    public void setLinkurl(String linkurl) {
        this.linkurl = linkurl == null ? null : linkurl.trim();
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public String getLarge() {
        return large;
    }

    public void setLarge(String large) {
        this.large = large == null ? null : large.trim();
    }

    public String getMedium() {
        return medium;
    }

    public void setMedium(String medium) {
        this.medium = medium == null ? null : medium.trim();
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail == null ? null : thumbnail.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", banner=").append(banner);
        sb.append(", title=").append(title);
        sb.append(", source=").append(source);
        sb.append(", linkurl=").append(linkurl);
        sb.append(", orders=").append(orders);
        sb.append(", large=").append(large);
        sb.append(", medium=").append(medium);
        sb.append(", thumbnail=").append(thumbnail);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}